package com.up.blog.service;
import com.up.blog.domain.Messagebean;
import com.up.blog.mapper.LoginCheckMapper;
import com.up.blog.mapper.MessageMapper;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.io.InputStream;
import java.sql.SQLException;
import java.util.List;
@Service("messageService")
public class MessageService {
    @Autowired
    private MessageMapper mapper;
    public List<Messagebean> getMessages(String id) throws SQLException, IOException {
        return mapper.getMessages(id);
    }
}
